package part1.oo.ooday02;

/** extends的演示 */
public class ExtendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",25,"北京","jsd2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ls = new Teacher("李四",26,"上海",250);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();

        Doctor ww = new Doctor("王五",27,"重庆","主任医师");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();

    }
}
